package com.qiche.controller.wx;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.qiche.aspect.Result;
import com.qiche.model.StoreMember;
import com.qiche.service.CategoryBannerService;

/**
 * @author LB
 *
 * @date 2018年7月12日
 */
@RestController
@RequestMapping("/wx/banners")
public class CategoryBannerWxController {
	@Autowired
    private CategoryBannerService categoryBannerService;
	
    @PostMapping("/getBanners")
    public Result<?> getBanners(@RequestParam String accessToken, @RequestParam String openid, String unionid,
			@RequestParam Long merchantId, StoreMember storeMember,
			@RequestParam(required = false, defaultValue = "default") String sortMoney) throws Exception {
    	Result<?>  result= categoryBannerService.selectAll();
        return result;
    }

}
